home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / text0118.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.2 KB  |  38 lines

  1. Im having a spot of bother. Im trying to work out the top and bottom
  2. coordinates for an irregular shape box. Heres what I mean:
  3.  
  4.     top left:   5,5                      top right:  75,20
  5.  
  6.  
  7.  
  8.    bot left    5,105                    bot right:  75,90
  9.  
  10.  
  11. As you can probably work out, the box is not the same height on both sides.
  12. I would like to know how to find the top and bottom line coords (where the
  13. pixel is) in the fastest possible way, using an algorythm that can work this
  14. out no matter what size the other sides are.
  15.  
  16. The routine I have at the moment uses IF...ENDIF to find it, but it is way
  17. too slow.
  18.  
  19. Thanks in advance
  20.  
  21. Mush
  22.  
  23.   --------******( Extreme AMOS )******--------
  24.  
  25. The best AMOS homepages around, full of downloads, and my AMOS disk
  26. magazine. Order games and utilities  directly from the library, for FREE.
  27.  
  28.           See my homepages at http://www.mushy-pd.demon.co.uk or
  29. http://members.tripod.com/~mushypd for more information.
  30.  
  31.       Email: mpd@mushy-pd.demon.co.uk      mpd@computer4u.com
  32.                                   mushy_pd@hotmail.com
  33.  
  34.                    Look for Mush now on IPhone in AMOS!!
  35.                               ICQ No. - 778243 (talk to me!!)
  36.  
  37.  
  38.